package com.zengfa.task.server.dao.memory;

import java.util.List;

import javax.sql.DataSource;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Repository;

import com.zengfa.task.api.enums.JobStatus;
import com.zengfa.task.server.dao.JobDao;
import com.zengfa.task.server.domain.entity.Job;

@Repository
@ConditionalOnMissingBean(DataSource.class)
public class JobDaoMemoryImpl implements JobDao{

	@Override
	public Job findJob(String jobGroup, String bizId) {
		System.out.println("内存");
		return null;
	}

	@Override
	public void save(Job job) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Job getById(String jobId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void updateById(Job job) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<Job> listByStatus(JobStatus status) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean lock(String jobId) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void unLock(String jobId) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean updateByIdAndStatus(Job job, JobStatus beforeStatus) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void updSyncTime(Job job) {
		// TODO Auto-generated method stub
		
	}

}
